from copy import deepcopy

MYSQL_DB_CONF = {
    "news": {
        "host": "127.0.0.1",
        "port": 3306,
        "user": "root",
        "password": "123456",
        "database": "news",
        "charset": "utf8mb4"
    }
}

MYSQLDB = {}


def load_mysql(mysql_env):
    for db_name, _db_conf in mysql_env.items():
        db_conf = deepcopy(_db_conf)
        MYSQLDB[db_name] = db_conf


load_mysql(MYSQL_DB_CONF)
